<?php
    require_once('../code/global.php');
    require_once('/code/Admin.php');
    $admin=new Admin();
    $admin->loginCheck(1);  
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>PhotoFromThe1st 后台管理系统</title>
        <link rel="stylesheet" href="/styles/admin.css" type="text/css" media="all">
        <script type="text/javascript" src="/script/jquery-1.6.1.min.js"></script>
        <script type="text/javascript" src="/script/script.js"></script>
    </head>  
    <body>
        <?php
            if(isset($_GET['msg']))
                echo '<div class="msgBox">'.$_GET['msg'].'</div>';
            else echo '<div class="msgBox">修改管理员密码</div>';
        ?>
        <div id="loginBox">
            <form name="editPwd" method="post" action="exec.php">
                <input type="hidden" name="action" value="editPwd">
                <table border="0" cellspacing="0" cellpadding="0">
                    <tr><td class="left">原密码：</td><td><input type="password" name="oldPwd"></td></tr>
                </table>
                <div class="stripe"></div>
                <table border="0" cellspacing="0" cellpadding="0">
                    <tr><td class="left">新密码：</td><td><input type="password" name="newPwd"></td></tr>
                    <tr><td class="left">重复密码：</td><td> <input type="password" name="repeatPwd"></td></tr>
                </table>
                <div class="stripe"></div> 
                <input class="btnCN" type="submit" value="提交"> <input class="btnCN" type="button" value="取消" onclick="location.href='accountInfo.php'">
            </form>            
        </div>
    </body>
</html>